package box;

import ship.Ship;

import cells.Erythrocyte;
import cells.ICell;

import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.utils.Array;
import com.gushikustudios.rube.RubeScene;

public class Scene {
	//private RubeScene rubeScene;
	private Ship ship;
	private Array<ICell> cells;
	private RubeScene scene;
	
	public Scene (RubeScene scene) {
		this.scene = scene;
		cells = new Array<>();
		Array<Body> bodies = scene.getBodies();
		for (Body el: scene.getBodies()) {
			//Type block
			String type = scene.getCustom(el, "Type", (String) "default");
			System.out.println(type);
			switch (type) {
			case "ship":
				ship = new Ship(el);
				break;
			case "erythrocyte":
				cells.add(new Erythrocyte(el));
				break;
			default:
				break;
			}
		}
	}
	
	public Ship getShip() {
		return ship;
	}
	
	public RubeScene getScene() {
		return scene;
	}
}

class Fillters {
	
}
